package com.tea.entity;

import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@Data
public class Coupon {






        //优惠券id
        private Long id;
        //优惠券号码
        private String code;
        //优惠券名
        private String name;
        //优惠券描述
        private String description;
        //优惠券类型 1-满减 2-折扣 3-立减
        private Integer type;
        //折扣金额
        private BigDecimal discountValue;
        //最低使用金额
        private BigDecimal minOrderAmount;
        //能抵扣的最大金额 一般未折扣券时使用
        private BigDecimal maxDiscountAmount;
        //有效开始时间
        private Date startTime;
        //有效结束时间
        private Date expireTime;
        //优惠券状态 0-未激活 1-已激活 2-已过期
        private Integer status;

        private Integer usageLimit;
        private Integer userLimit;
        private Boolean stackable;
        //创造时间
        private Date createTime;
        //修改时间
        private Date updateTime;

}
